<template>
  <div id="storelist">
    <div class="guesslist">
      <div class="title">猜你喜欢</div>
      <div class="findlist">
        <div class="find">
            <span v-for="(item,index) in findlist" :key="index">{{item.option}}</span>
        </div>
        <div class="blockage">
            <div class="itm">年货节热卖</div>
            <div class="itm">津贴联盟</div>
            <div class="itm">满减优惠</div>
            <div class="itm">品质联盟</div>
        </div>
      </div>
    </div>
    <div class="store" v-for="(item, index) in storelist" :key="index">
      <div class="img-box">
        <img :src="item.pic" alt="" />
      </div>
      <div class="text">
        <div class="name">{{ item.name }}</div>
        <div class="sales">月售{{ item.sales }}</div>
        <p>起送20远距离配送￥3</p>
        <div class="space">{{ item.space }}km</div>
      </div>
    </div>
  </div>
</template>

<script>
import store1 from "../assets/store1.png";
import store2 from "../assets/store2.png";
export default {
  data() {
    return {
      findlist: [
        {
          option:'综合排序∨'
        },
        {
          option:'距离最近'
        },
        {
          option:'销量最高'
        },
        {
          option:'筛选▽'
        },
      ],
      storelist: [
        {
          pic: store1,
          name: "金百万烤鸭(苏家坨店)",
          sales: 1632,
          space: 3.9,
        },
        {
          pic: store2,
          name: "稻香金源饺子馆",
          sales: 230,
          space: 2.5,
        },
      ],
    };
  },
};
</script>

<style scoped>
#storelist {
    margin: 10px;
}
#storelist .guesslist .title{
    font-weight: 700;
}
#storelist .guesslist .find{
    font-size: 16px;
    font-weight: 700;
    line-height: 40px;
    display: flex;
    justify-content: space-around;
}
#storelist .guesslist .blockage{
    line-height: 40px;
    display: flex;
    justify-content: space-around;
    font-size: 14px;
}
#storelist .guesslist .blockage .itm{
    background-color: rgb(239, 237, 237);
    height: 25px;
    line-height: 25px;
    margin: 1px;
    padding: 5px 8px;
}
#storelist .store {
  display: flex;
  height: 100px;
  margin: 20px 0;
  border-radius: 5px;
}
#storelist .store .img-box {
  width: 80px;
  margin-right: 10px;
}
#storelist .store .img-box img {
  width: 100%;
}
#storelist .store .text {
  flex: 1;
}
#storelist .store .text .name {
  font-weight: 700;
}
#storelist .store .text .sales,
#storelist .store .text .space,
#storelist .store .text p {
  line-height: 30px;
  font-size: 14px;
}
#storelist .store .text .space {
  float: right;
}
</style>